package com.tao.springcloud.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName Client3366Controller
 * @Author HETAO
 * @Date 2020/5/12 0:12
 */
@RestController
@RefreshScope
public class Client3366Controller {
    @Value("${config.info}")
    private String configInfo;

    @Value("${server.port}")
    private String serverPort;

    @GetMapping("configInfo")
    public String test() {
        return configInfo + "<<>>" +serverPort;
    }
}
